package common;

public class TameUtil {
	
	private static long start;
	private static long end;
	private static long timeSpan;
	
	public static void setStart() {
		start = System.currentTimeMillis();
	}
	
	public static long getStart() {
		return start;
	}
	
	public static void setEnd() {
		end = System.currentTimeMillis();
	}
	
	public static long getEnd() {
		return end;
	}
	
	public static void setTimeSpan() {
		timeSpan = end-start;
	}
	
	public static long getTimeSpan() {
		return timeSpan;
	}
	
	public static String formatedTime(long timeInMillis) {
		long seconds =  timeInMillis/1000;
		long millis = timeInMillis%1000;
		
		return seconds+" seconds, "+millis+" millis";
	}

}
